package com.youlu.campus.service.wechat;

import com.youlu.campus.entity.VO.req.WechatH5CodeReqVO;
import com.youlu.campus.entity.VO.res.UserResponse;
import com.youlu.campus.entity.WechatThirdUserPO;

public interface WechatThirdUserService {

    WechatThirdUserPO findByOpenId(String appId, String openId);

    WechatThirdUserPO findByUnionId(String unionId);

    void create(WechatThirdUserPO wechatThirdUserPO);

    /**
     * 微信第三方登陆
     *
     * @param appId
     * @param code
     * @return
     */
    UserResponse login(String appId, String code);


    String getwechatThirdLoginCode(WechatH5CodeReqVO req);
}
